package com.yuebao.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.yuebao.service.BlockHandlerService;

@RestController
@RequestMapping("/test")
public class HelloController {

    @GetMapping("/test")
    @SentinelResource(value = "test/test",blockHandlerClass = BlockHandlerService.class,blockHandler = "testBlock")
    public String hello(){
        return "hello";
    }
}
